Code | Description |
---|---|
\\ | backslash "\" |
\a or '' | apostrophe "'" (\a only for AmigaE compatibility) |
\b | return (ascii 13) |
\e | escape (ascii 27) |
\n | linefeed (ascii 10) |
\q or " | |
\t | tabulator (ascii 9) |
\v | vertical tabulator (ascii 11) |
\! | bell (ascii 7) |
\0 | zero byte (ascii 0), end of string |
\j# | single character where # is number (0-255) of character you want. |
\x | extended formating, see below |
Code | Description |
---|---|
\d | decimal number |
\h | hexadecimal number |
\c | single character |
\u | unsigned decimal number |
\s | string |
\l | used before \s, \h, \d, \u, means left justified |
\r | used before \s, \h, \d, \u, means right justified |
\z | used before \h, \d, \u with field definition (see below) creates leading zeros |
Extension | Description |
---|---|
t | full actual time (hh:mm:ss) |
d | full actual date (yy-mmm-dd) |
s | actual second |
m | actual minute |
h | actual hour |
Dn | actual day number |
DN | actual day number (2 digits) |
Ds | actual day short name (like Mon, Tue, ...) |
Df | actual day full name (like Monday, Tuesday, ...) |
Mn | actual month number |
MN | actual month number (2 digits) |
Ms | actual month short name (like Jan, Feb, ...) |
y | actual year (4 digits) |
Y | actial year (2 digits) |
v | compiler version string |
V | compiler version without '$VER: ' string |
c | compiling machine cpu (like MC68LC040) |
C | shorter compiling machine cpu (like LC040) |
f | compiling machine fpu (like MC68882 or none) |
F | shorter compiling machine fpu (like 882) |
'bla' 'Hello world!\n' 'My address:\n'+ 'Amforová 1930\n'+ 'Prague, 15500\n'+ 'Czech Repiblic\n'
PrintF('a+b=\d\n',a+b) PrintF('file ''\s'' not found.\n',filename) PrintF('Address is $\z\h[8]\n',adr)
'Date: \xDn.\Mn\xyn' will produce sth like 'Date: 4.2.2000'
'Hello\j10' // is the same as 'Hello\n' 'Test \j12345' // is the same as 'Test {45' '\j999' // is the same as 'c9'